package com.tenbent.product.center.insures.dto.search;

import com.tenbent.product.base.dto.search.BaseSearchPageDto;
import com.tenbent.product.base.query.page.Pageable;
import com.tenbent.product.center.insures.bo.SafeguardPackage;

/**
 * 保障套餐
 *
 * @author Randy
 *
 *         Created by ThinkPad on 2017/8/21.
 */
public class SafeguardPackageSearchPageDto extends BaseSearchPageDto {

	/** 产品ID **/
	private Integer productId;

	/** 套餐代码 **/
	private String packageCode;

	/** 套餐名称 **/
	private String packageName;

	@Override
	public Pageable transToPageable() {
		SafeguardPackage safeguardPackage = new SafeguardPackage();
		safeguardPackage.setProductId(this.getProductId());
		safeguardPackage.setPackageCode(this.getPackageCode());
		safeguardPackage.setPackageName(this.getPackageName());
		Pageable pageable = new Pageable(this.getPageNum(), this.getPageSize());
		pageable.setParamBizObject(safeguardPackage);
		return pageable;
	}

	public Integer getProductId() {
		return productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	public String getPackageCode() {
		return packageCode;
	}

	public void setPackageCode(String packageCode) {
		this.packageCode = packageCode;
	}

	public String getPackageName() {
		return packageName;
	}

	public void setPackageName(String packageName) {
		this.packageName = packageName;
	}
}
